package load.education;

import core.OutPort;
import core.StdNode;

/**
 *
 * @author Ben
 */
public class GetPosition extends StdNode{
    private OutPort x = new OutPort(Integer.class){
        @Override
        public Object getValueInternal() {
                return  controller.StdDraw.getInstance().getTurtle().getPosition().getX();
        }
    };

    private OutPort y = new OutPort(Integer.class){
        @Override
        public Object getValueInternal() {
                return controller.StdDraw.getInstance().getTurtle().getPosition().getY();
        }
    };

    public GetPosition() {
        this.autoPutPorts();
    }

}
